from pydantic import Extra


class MyClassConfig:
    """Configuration for this pydantic object."""
    extra = Extra.forbid
    arbitrary_types_allowed = True
    # 别名字段是否可以由 model 属性给出的名称以及别名（默认值：False)
    allow_population_by_field_name = False
